package com.ihr360.cnb.module.payroll.service.fllback;

import com.ihr360.cnb.module.payroll.service.IrenshiAttendanceDubboProviderService;
import com.ihr360.commons.exception.Ihr360Exception;
import com.ihr360.payroll.request.attendance.AttendanceOverTimeRequest;
import com.ihr360.payroll.request.attendance.AttendanceSyncRequest;
import com.ihr360.payroll.response.attendance.AttendanceBillSyncResponse;
import com.ihr360.payroll.response.attendance.AttendanceSyncResponse;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Eric on 2018/4/4/004.
 */
@Component
public class IrenshiAttendanceDubboDubboProviderServiceFallback implements IrenshiAttendanceDubboProviderService {
    @Override
    public AttendanceSyncResponse getSignMonthlyReportInfoData(AttendanceSyncRequest syncRequest) {
        throw new Ihr360Exception(null, "查询考勤月报数据异常，接口调用失败");
    }

    @Override
    public List<AttendanceBillSyncResponse> getSignRecordInfoData(AttendanceSyncRequest syncRequest) {
        throw new Ihr360Exception(null, "查询考勤单据数据异常，接口调用失败");
    }

    @Override
    public void syncOvertimeData(AttendanceOverTimeRequest syncRequest) {
        throw new Ihr360Exception(null, "回写考勤加班数据异常，接口调用失败");
    }
}
